class HomeReommend {
  List<Records>? _records;
  int? _total;
  int? _size;
  int? _current;
  String? _orders;
  bool? _optimizeCountSql;
  bool? _searchCount;
  String? _countId;
  String? _maxLimit;
  int? _pages;

  HomeReommend(
      {List<Records>? records,
      int? total,
      int? size,
      int? current,
      String? orders,
      bool? optimizeCountSql,
      bool? searchCount,
      String? countId,
      String? maxLimit,
      int? pages}) {
    if (records != null) {
      this._records = records;
    }
    if (total != null) {
      this._total = total;
    }
    if (size != null) {
      this._size = size;
    }
    if (current != null) {
      this._current = current;
    }
    if (orders != null) {
      this._orders = orders;
    }
    if (optimizeCountSql != null) {
      this._optimizeCountSql = optimizeCountSql;
    }
    if (searchCount != null) {
      this._searchCount = searchCount;
    }
    if (countId != null) {
      this._countId = countId;
    }
    if (maxLimit != null) {
      this._maxLimit = maxLimit;
    }
    if (pages != null) {
      this._pages = pages;
    }
  }

  List<Records>? get records => _records;
  set records(List<Records>? records) => _records = records;
  int? get total => _total;
  set total(int? total) => _total = total;
  int? get size => _size;
  set size(int? size) => _size = size;
  int? get current => _current;
  set current(int? current) => _current = current;
  String? get orders => _orders;
  set orders(String? orders) => _orders = orders;
  bool? get optimizeCountSql => _optimizeCountSql;
  set optimizeCountSql(bool? optimizeCountSql) =>
      _optimizeCountSql = optimizeCountSql;
  bool? get searchCount => _searchCount;
  set searchCount(bool? searchCount) => _searchCount = searchCount;
  String? get countId => _countId;
  set countId(String? countId) => _countId = countId;
  String? get maxLimit => _maxLimit;
  set maxLimit(String? maxLimit) => _maxLimit = maxLimit;
  int? get pages => _pages;
  set pages(int? pages) => _pages = pages;

  HomeReommend.fromJson(Map<String, dynamic> json) {
    if (json['records'] != null) {
      _records = <Records>[];
      json['records'].forEach((v) {
        _records!.add(new Records.fromJson(v));
      });
    }
    _total = json['total'];
    _size = json['size'];
    _current = json['current'];
    _orders = json['orders'];
    _optimizeCountSql = json['optimizeCountSql'];
    _searchCount = json['searchCount'];
    _countId = json['countId'];
    _maxLimit = json['maxLimit'];
    _pages = json['pages'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this._records != null) {
      data['records'] = this._records!.map((v) => v.toJson()).toList();
    }
    data['total'] = this._total;
    data['size'] = this._size;
    data['current'] = this._current;
    data['orders'] = this._orders;
    data['optimizeCountSql'] = this._optimizeCountSql;
    data['searchCount'] = this._searchCount;
    data['countId'] = this._countId;
    data['maxLimit'] = this._maxLimit;
    data['pages'] = this._pages;
    return data;
  }
}

class Records {
  int? _id;
  int? _storeId;
  int? _classifyId;
  int? _type;
  String? _supperPointsAccount;
  bool? _isGivePoints;
  int? _givePointsAccount;
  int? _giveNum;
  int? _status;
  String? _name;
  String? _tags;
  int? _unifiedPrice;
  String? _mainImage;
  String? _minutiaImages;
  int? _originalPrice;
  int? _price;
  int? _stock;
  String? _describes;
  int? _lastCheckStatus;
  String? _lastCheckBy;
  String? _lastCheckTime;
  String? _lastCheckRefuseReason;
  int? _version;
  int? _delFlag;
  String? _createTime;
  String? _createBy;
  String? _updateTime;
  String? _updateBy;
  int? _stockOperationType;
  int? _quota;
  String? _quotaType;
  String? _postPrice;
  String? _quotaDay;

  Records(
      {int? id,
      int? storeId,
      int? classifyId,
      int? type,
      String? supperPointsAccount,
      bool? isGivePoints,
      int? givePointsAccount,
      int? giveNum,
      int? status,
      String? name,
      String? tags,
      int? unifiedPrice,
      String? mainImage,
      String? minutiaImages,
      int? originalPrice,
      int? price,
      int? stock,
      String? describes,
      int? lastCheckStatus,
      String? lastCheckBy,
      String? lastCheckTime,
      String? lastCheckRefuseReason,
      int? version,
      int? delFlag,
      String? createTime,
      String? createBy,
      String? updateTime,
      String? updateBy,
      int? stockOperationType,
      int? quota,
      String? quotaType,
      String? postPrice,
      String? quotaDay}) {
    if (id != null) {
      this._id = id;
    }
    if (storeId != null) {
      this._storeId = storeId;
    }
    if (classifyId != null) {
      this._classifyId = classifyId;
    }
    if (type != null) {
      this._type = type;
    }
    if (supperPointsAccount != null) {
      this._supperPointsAccount = supperPointsAccount;
    }
    if (isGivePoints != null) {
      this._isGivePoints = isGivePoints;
    }
    if (givePointsAccount != null) {
      this._givePointsAccount = givePointsAccount;
    }
    if (giveNum != null) {
      this._giveNum = giveNum;
    }
    if (status != null) {
      this._status = status;
    }
    if (name != null) {
      this._name = name;
    }
    if (tags != null) {
      this._tags = tags;
    }
    if (unifiedPrice != null) {
      this._unifiedPrice = unifiedPrice;
    }
    if (mainImage != null) {
      this._mainImage = mainImage;
    }
    if (minutiaImages != null) {
      this._minutiaImages = minutiaImages;
    }
    if (originalPrice != null) {
      this._originalPrice = originalPrice;
    }
    if (price != null) {
      this._price = price;
    }
    if (stock != null) {
      this._stock = stock;
    }
    if (describes != null) {
      this._describes = describes;
    }
    if (lastCheckStatus != null) {
      this._lastCheckStatus = lastCheckStatus;
    }
    if (lastCheckBy != null) {
      this._lastCheckBy = lastCheckBy;
    }
    if (lastCheckTime != null) {
      this._lastCheckTime = lastCheckTime;
    }
    if (lastCheckRefuseReason != null) {
      this._lastCheckRefuseReason = lastCheckRefuseReason;
    }
    if (version != null) {
      this._version = version;
    }
    if (delFlag != null) {
      this._delFlag = delFlag;
    }
    if (createTime != null) {
      this._createTime = createTime;
    }
    if (createBy != null) {
      this._createBy = createBy;
    }
    if (updateTime != null) {
      this._updateTime = updateTime;
    }
    if (updateBy != null) {
      this._updateBy = updateBy;
    }
    if (stockOperationType != null) {
      this._stockOperationType = stockOperationType;
    }
    if (quota != null) {
      this._quota = quota;
    }
    if (quotaType != null) {
      this._quotaType = quotaType;
    }
    if (postPrice != null) {
      this._postPrice = postPrice;
    }
    if (quotaDay != null) {
      this._quotaDay = quotaDay;
    }
  }

  int? get id => _id;
  set id(int? id) => _id = id;
  int? get storeId => _storeId;
  set storeId(int? storeId) => _storeId = storeId;
  int? get classifyId => _classifyId;
  set classifyId(int? classifyId) => _classifyId = classifyId;
  int? get type => _type;
  set type(int? type) => _type = type;
  String? get supperPointsAccount => _supperPointsAccount;
  set supperPointsAccount(String? supperPointsAccount) =>
      _supperPointsAccount = supperPointsAccount;
  bool? get isGivePoints => _isGivePoints;
  set isGivePoints(bool? isGivePoints) => _isGivePoints = isGivePoints;
  int? get givePointsAccount => _givePointsAccount;
  set givePointsAccount(int? givePointsAccount) =>
      _givePointsAccount = givePointsAccount;
  int? get giveNum => _giveNum;
  set giveNum(int? giveNum) => _giveNum = giveNum;
  int? get status => _status;
  set status(int? status) => _status = status;
  String? get name => _name;
  set name(String? name) => _name = name;
  String? get tags => _tags;
  set tags(String? tags) => _tags = tags;
  int? get unifiedPrice => _unifiedPrice;
  set unifiedPrice(int? unifiedPrice) => _unifiedPrice = unifiedPrice;
  String? get mainImage => _mainImage;
  set mainImage(String? mainImage) => _mainImage = mainImage;
  String? get minutiaImages => _minutiaImages;
  set minutiaImages(String? minutiaImages) => _minutiaImages = minutiaImages;
  int? get originalPrice => _originalPrice;
  set originalPrice(int? originalPrice) => _originalPrice = originalPrice;
  int? get price => _price;
  set price(int? price) => _price = price;
  int? get stock => _stock;
  set stock(int? stock) => _stock = stock;
  String? get describes => _describes;
  set describes(String? describes) => _describes = describes;
  int? get lastCheckStatus => _lastCheckStatus;
  set lastCheckStatus(int? lastCheckStatus) =>
      _lastCheckStatus = lastCheckStatus;
  String? get lastCheckBy => _lastCheckBy;
  set lastCheckBy(String? lastCheckBy) => _lastCheckBy = lastCheckBy;
  String? get lastCheckTime => _lastCheckTime;
  set lastCheckTime(String? lastCheckTime) => _lastCheckTime = lastCheckTime;
  String? get lastCheckRefuseReason => _lastCheckRefuseReason;
  set lastCheckRefuseReason(String? lastCheckRefuseReason) =>
      _lastCheckRefuseReason = lastCheckRefuseReason;
  int? get version => _version;
  set version(int? version) => _version = version;
  int? get delFlag => _delFlag;
  set delFlag(int? delFlag) => _delFlag = delFlag;
  String? get createTime => _createTime;
  set createTime(String? createTime) => _createTime = createTime;
  String? get createBy => _createBy;
  set createBy(String? createBy) => _createBy = createBy;
  String? get updateTime => _updateTime;
  set updateTime(String? updateTime) => _updateTime = updateTime;
  String? get updateBy => _updateBy;
  set updateBy(String? updateBy) => _updateBy = updateBy;
  int? get stockOperationType => _stockOperationType;
  set stockOperationType(int? stockOperationType) =>
      _stockOperationType = stockOperationType;
  int? get quota => _quota;
  set quota(int? quota) => _quota = quota;
  String? get quotaType => _quotaType;
  set quotaType(String? quotaType) => _quotaType = quotaType;
  String? get postPrice => _postPrice;
  set postPrice(String? postPrice) => _postPrice = postPrice;
  String? get quotaDay => _quotaDay;
  set quotaDay(String? quotaDay) => _quotaDay = quotaDay;

  Records.fromJson(Map<String, dynamic> json) {
    _id = json['id'];
    _storeId = json['storeId'];
    _classifyId = json['classifyId'];
    _type = json['type'];
    _supperPointsAccount = json['supperPointsAccount'];
    _isGivePoints = json['isGivePoints'];
    _givePointsAccount = json['givePointsAccount'];
    _giveNum = json['giveNum'];
    _status = json['status'];
    _name = json['name'];
    _tags = json['tags'];
    _unifiedPrice = json['unifiedPrice'];
    _mainImage = json['mainImage'];
    _minutiaImages = json['minutiaImages'];
    _originalPrice = json['originalPrice'];
    _price = json['price'];
    _stock = json['stock'];
    _describes = json['describes'];
    _lastCheckStatus = json['lastCheckStatus'];
    _lastCheckBy = json['lastCheckBy'];
    _lastCheckTime = json['lastCheckTime'];
    _lastCheckRefuseReason = json['lastCheckRefuseReason'];
    _version = json['version'];
    _delFlag = json['delFlag'];
    _createTime = json['createTime'];
    _createBy = json['createBy'];
    _updateTime = json['updateTime'];
    _updateBy = json['updateBy'];
    _stockOperationType = json['stockOperationType'];
    _quota = json['quota'];
    _quotaType = json['quotaType'];
    _postPrice = json['postPrice'];
    _quotaDay = json['quotaDay'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this._id;
    data['storeId'] = this._storeId;
    data['classifyId'] = this._classifyId;
    data['type'] = this._type;
    data['supperPointsAccount'] = this._supperPointsAccount;
    data['isGivePoints'] = this._isGivePoints;
    data['givePointsAccount'] = this._givePointsAccount;
    data['giveNum'] = this._giveNum;
    data['status'] = this._status;
    data['name'] = this._name;
    data['tags'] = this._tags;
    data['unifiedPrice'] = this._unifiedPrice;
    data['mainImage'] = this._mainImage;
    data['minutiaImages'] = this._minutiaImages;
    data['originalPrice'] = this._originalPrice;
    data['price'] = this._price;
    data['stock'] = this._stock;
    data['describes'] = this._describes;
    data['lastCheckStatus'] = this._lastCheckStatus;
    data['lastCheckBy'] = this._lastCheckBy;
    data['lastCheckTime'] = this._lastCheckTime;
    data['lastCheckRefuseReason'] = this._lastCheckRefuseReason;
    data['version'] = this._version;
    data['delFlag'] = this._delFlag;
    data['createTime'] = this._createTime;
    data['createBy'] = this._createBy;
    data['updateTime'] = this._updateTime;
    data['updateBy'] = this._updateBy;
    data['stockOperationType'] = this._stockOperationType;
    data['quota'] = this._quota;
    data['quotaType'] = this._quotaType;
    data['postPrice'] = this._postPrice;
    data['quotaDay'] = this._quotaDay;
    return data;
  }
}
